//
//  UIScrollView+MLKit.h
//  Pods
//
//  Created by molon on 15/6/25.
//
//

#import <UIKit/UIKit.h>

@interface UIScrollView (MLKit)

/**
 *  矫正头部底部的inset，并且在矫正后调整offset为之前位置
 */
- (void)adjustContentInsetTop:(CGFloat)top andBottom:(CGFloat)bottom;
- (void)adjustContentInsetBottom:(CGFloat)bottom;

/**
 *  最底部的不会过界的contentOffset
 */
- (CGFloat)bottomContentOffset;

- (void)scrollToTopWithAnimated:(BOOL)animated;
- (void)scrollToBottomWithAnimated:(BOOL)animated;

//滚动到某个rect的中间位置。就是这个rect显示在scrollView的中间
- (void)scrollToVerticalMiddleWithRect:(CGRect)rect animated:(BOOL)animated;

@end
